<template>
  <el-dialog
    width="600px"
    custom-class="notice-dialog"
    :visible.sync="noticeVisible"
    :close-on-click-modal="false"
  >
    <div slot="title" class="bb pb20">
      <div class="title mb15">{{ noticeInfo.title }}</div>
      <div class="flex align-center sub-title">
        <div>发布人:{{ noticeInfo.creator }}</div>
        <div class="ml15">发布时间:{{ noticeInfo.create_time }}</div>
      </div>
    </div>
    <div class="content">
      <div class="mb20 title font17">流程催办提醒</div>
      <div class="sub-title">
        <div>流程名称：<span class="desc">{{ noticeInfo.processName }}</span></div>
        <div>催办任务：<span class="desc">{{ noticeInfo.processState }}</span></div>
        <div>催办时间：<span class="desc">{{ noticeInfo.create_time }}</span></div>
        <div>催办内容：<span class="desc">请进入待办栏，尽快处理！</span></div>
      </div>
    </div>
    <div slot="footer" class="flex flex-row justify-content-center">
      <div class="btn-list mt15">
        <el-button
          type="primary"
          @click="close"
        >关 闭</el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script>
import { noticeDetail } from '@/api/process/notice'
export default {
  name: 'TipsDialog',
  data() {
    return {
      loading: false,
      noticeVisible: false,
      noticeInfo: {}
    }
  },
  methods: {
    close() {
      this.noticeVisible = false
    },
    async open(row) {
      const detail = await noticeDetail({ noticeId: row.id })
      this.noticeInfo = detail.data
      this.noticeVisible = true
      this.$emit('refreshList')
    }
  }
}
</script>

<style lang="scss" scoped>
  .title {
    font-size: 17px;
    color:#111;
  }
  .sub-title{
    font-size: 15px;
    color: #666;
  }
  .desc {
    font-size: 16px;
    color:#111;
    line-height: 30px;
  }
</style>
